fix: show live transcript in standalone notes#5820
Merged
Conversation
✅ Deploy Preview for old-char canceled.
|
65aa00a to
63300a7
Compare
Expose active capture snapshots and attach standalone note routes to listener events.
63300a7 to
47bdd95
Compare
47bdd95 to
980cd6e
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 980cd6e. Configure here.
Prevent overlapping attach calls from leaking listeners and clear stale timers when snapshots switch active sessions.
980cd6e to
9fcb56b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary:
Note
Medium Risk
Touches live capture/listener state sync and multi-window event attachment; wrong session or snapshot handling could mis-label active capture or duplicate listeners.
Overview
Fixes standalone note windows missing live transcript when capture already runs in another window.
The transcription plugin adds
get_capture_snapshot, returning capture state plus active/finalizing session IDs and live-transcription flags (from a new listener-coreSnapshotandSessionStateCache). The desktop listener store gainsattachLiveSession, which subscribes to capture events without starting capture, hydrates UI state from the snapshot, and dedupes overlapping attaches;startLiveSessionnow clears prior per-session listeners before re-registering.The standalone note route calls
useAttachStandaloneNoteToLiveSessionso the window attaches (and reattaches when listeners drop). Tests cover attach/hydration edge cases on both the store and the route.Reviewed by Cursor Bugbot for commit 9fcb56b. Bugbot is set up for automated code reviews on this repo. Configure here.